﻿/*
 * nhibernate 里面使用类属性来映射 public virtual Guid Guid { get; set; }
 */
using NHibernate.Mapping.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace IceZero.DataStore.Models
{

    /// <summary>
    /// 用户信息表
    /// </summary>
    [Serializable()]
    [XmlRoot("IceZero_User")]
    [Class(Table = "IceZero_User")]//定义数据库表名
    public class User:ModelBase
    {

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Name", TypeType = typeof(string), Length = 200)]
        public virtual string Name { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Account", TypeType = typeof(string), Length = 128)]
        public virtual string Account { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Password", TypeType = typeof(string), Length = 128)]
        public virtual string Password { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Salt", TypeType = typeof(string), Length = 128)]
        public virtual string Salt { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Remark", TypeType = typeof(string), Length = 128)]
        public virtual string Remark { get; set; }
    }
}
